const mongoose = require('mongoose')
module.exports = () => {
    mongoose.connect('mongodb://localhost:27017/paotui', { useUnifiedTopology: true, useNewUrlParser: true }).then(() => {
        console.log('连接成功!')
    }, (err) => {
        console.log('连接失败!', err)
    })
}